<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%><%@taglib
	uri="http://java.sun.com/jsf/core" prefix="f"%><%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Escola de Idiomas: Cadastrar novo aluno</title>
</head>
<body>

<f:view>
		<h1>Escola de Idiomas: Cadastrar novo aluno</h1>

		<h:form>
			<div>
				<h:outputLabel value="Nome:"></h:outputLabel><br/>
				<h:inputText value="#{aluno.nome}"></h:inputText>
			</div>
			
			<div>
				<h:outputLabel value="CPF:"></h:outputLabel><br/>
				<h:inputText value="#{aluno.cpf}"></h:inputText>
			</div>
			
			<div>
				<h:outputLabel value="Sexo:"></h:outputLabel><br/>
				<h:selectOneRadio value="#{aluno.sexo}">
					<f:selectItem itemValue="Masculino" itemLabel="Masculino"></f:selectItem>
					<f:selectItem itemValue="Feminino" itemLabel="Feminino"></f:selectItem>
				</h:selectOneRadio>
			</div>
			
			<div>
				<h:outputLabel value="Nascimento:"></h:outputLabel><br/>
				<h:inputText value="#{aluno.nascimento}"><f:convertDateTime /></h:inputText>
			</div>
			
			<div>
				<h:outputLabel value="Telefone:"></h:outputLabel><br/>
				<h:inputText value="#{aluno.telefone}"></h:inputText>
			</div>
			
			<div>
				<h:outputLabel value="E-mail:"></h:outputLabel><br/>
				<h:inputText value="#{aluno.email}"></h:inputText>
			</div>
			
			<div>
				<h:outputLabel value="Responsável:"></h:outputLabel><br/>
				<h:inputText value="#{aluno.responsavel}"></h:inputText>
			</div>

			<h:commandButton value="Cadastrar" action="#{aluno.cadastrar}"></h:commandButton>

		</h:form>
</f:view>
</body>
</html>